package com.tj.api.rest.config.response;

import com.tj.template.application.oss.OssAppToken;

/**
 * @program: binary-option
 * @description
 * @author: binary
 * @create: 2020-06-23 15:58
 **/
public class OssAppTokenVO {

    private String accessKeyId;
    private String accessKeySecret;
    private String securityToken;
    private String expiration;
    private String objectName;
    private String bucketName;
    private String baseUrl;

    public OssAppTokenVO(OssAppToken ossAppToken) {
        this.accessKeyId = ossAppToken.getAccessKeyId();
        this.accessKeySecret = ossAppToken.getAccessKeySecret();
        this.securityToken = ossAppToken.getSecurityToken();
        this.expiration = ossAppToken.getExpiration();
        this.objectName = ossAppToken.getObjectName();
        this.bucketName = ossAppToken.getBucketName();
        this.baseUrl = ossAppToken.getBaseUrl();
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public OssAppTokenVO setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
        return this;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public OssAppTokenVO setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
        return this;
    }

    public String getSecurityToken() {
        return securityToken;
    }

    public OssAppTokenVO setSecurityToken(String securityToken) {
        this.securityToken = securityToken;
        return this;
    }

    public String getExpiration() {
        return expiration;
    }

    public OssAppTokenVO setExpiration(String expiration) {
        this.expiration = expiration;
        return this;
    }

    public String getObjectName() {
        return objectName;
    }

    public OssAppTokenVO setObjectName(String objectName) {
        this.objectName = objectName;
        return this;
    }

    public String getBucketName() {
        return bucketName;
    }

    public OssAppTokenVO setBucketName(String bucketName) {
        this.bucketName = bucketName;
        return this;
    }

    public String getBaseUrl() {
        return baseUrl;
    }

    public OssAppTokenVO setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
        return this;
    }
}
